﻿@{
	var db = Database.Open("wishlistdb");
    PageData["displayLinkShare"] = PageData["displayLinkShare"] ?? false;
}
<!DOCTYPE html>
<html>
    <head>
        <title>@PageData["Title"]</title>        
		<link rel="stylesheet" href="@Href("~/Content/Default.css")" type="text/css"/>
		<link rel="stylesheet" href="@Href("~/Freemium/Content/Default.css")" type="text/css"/>
        <link rel="stylesheet" href="@Href("~/Content/jquery-ui-1.8.2.custom.css")" type="text/css"/>
    </head>
    <body>
        <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.js" type="text/javascript"></script>
        <script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js" type="text/javascript"></script>
        <script src="@Href("~/Scripts/jquery-ui-1.8.2.custom.min.js")" type="text/javascript"></script>
        <div class="bannerExt">
            <div class="banner"><a id="home" href="@Href("~")">Wishlist</a></div>
            <ul class="nav">
                <li class="lists"><a href="@Href("~/ManageLists")">Lists</a></li>
                <li class="profile"><a href="@Href("~/Account/Manage")">Profile</a></li>
                <li class="signup"><a href="@Href("~/Freemium/Signup")">Sign Up</a></li>
                @if (Roles.IsUserInRole("admin")) {
                    <li class="manage"><a href="@Href("~/Admin/UserManagement")">Manage Site</a></li>
                }
                <li>@RenderPage("~/Shared/_LoginUserControl.cshtml")</li>
            <ul>
        </div>
        <div class="mainColumn">
            @if (PageData["displayLinkShare"]) {
                <span class="linkshare">@LinkShare.GetHtml("Wishlist Application")</span>
            }
            @RenderBody()
        </div>
        <div class="footer">
            <div class="copyright">
                &copy; Wishlist @DateTime.Now.Year
            </div>
        </div>
    </body>
</html>
